<template>
	<view class="container">
		<view class="cells">
			<view class="cell">
				<view class="cell-title">状态</view>
				<view class="cell-text status">{{ detail.statusName }}</view>
			</view>
			<view class="cell">
				<view class="cell-title">姓名</view>
				<view class="cell-text">{{detail.name}}</view>
			</view>
			<view class="cell">
				<view class="cell-title">手机号码</view>
				<view class="cell-text">{{detail.phone}}</view>
			</view>
			<view class="cell">
				<view class="cell-title">身份证号</view>
				<view class="cell-text">{{detail.idcard}}</view>
			</view>
			<view class="cell">
				<view class="cell-title">详细地址</view>
				<view class="cell-text u-line-3"><text>{{detail.area}}{{detail.building}}</text></view>
			</view>
		</view>
	</view>
</template>

<script>
import { applyStatus } from '@/config/dict.js';
export default {
	name: 'record',
	data() {
		return {
			detail: {}
		};
	},
	onLoad() {
		this.propertInfo();
	},
	methods: {
		propertInfo() {
			this.$api
				.propertInfo()
				.then(res => {
					this.loading = false;
					if (res.status === 1) {
						let item = applyStatus.find(e => e.code === res.data.status);
						res.data.statusName = item.name;
						this.detail = res.data || {};
					}
				})
				.catch(err => {
					this.loading = false;
				});
		}
	}
};
</script>

<style scoped lang="scss">
.container {
	padding: 32rpx 32rpx;
	.cells {
		// margin-top: 32rpx;
		padding: 20rpx 0;
		border-radius: 20rpx;
		background-color: #fff;
	}
}
.cell {
	display: flex;
	justify-content: space-between;
	// flex-wrap: wrap;
	// align-items: center;
	width: 100%;
	// height: 80rpx;
	padding: 16rpx 32rpx;
	.cell-title {
		min-width: 160rpx;
		color: #586474;
	}
	.cell-text {
		// flex: 1;
		// display: flex;
		// flex-wrap: wrap;
		font-weight: 500;
		color: #000000;
	}
	// .cell-text-tips {
	// 	padding-left: 16rpx;
	// 	font-size: 24rpx;
	// 	font-weight: 400;
	// 	color: #d2d6df;
	// }
	.status {
		color: #186bfc;
	}
}
</style>
